﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace TCP_Client
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            var dialog = new DangNhap();
            Application.Run(dialog);
            if (dialog.DialogResult == DialogResult.OK)
            {
                var chatform = new Form1(dialog._socketClient, dialog.UserName);
                chatform.ShowDialog();
            }
        }
    }
}
